package io.github.talelin.latticy.common.enumeration;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @authoer:wulongbo
 * @createDate:2022/6/28
 * @description:
 */
@AllArgsConstructor
@Getter
public enum ModelEnum {

    /**
     * 无效值
     */
    NULL(0, "无效值"),

    /**
     * 及时核销
     */
    TIMELY_WRITE_OFF (1, "及时核销 ");


    /**
     * 事后核销
     */
//    WRITE_OFF_AFTERWARDS(2, "事后核销");


    @EnumValue
    private Integer model;

    @JsonValue    //标记响应json值
    private String modelDesc;
}
